### Function Description

Fast execute script

### Request Parameters

#### Body params

| Fields             | Type    | Required | Description                                                                                                                                                                                                                                                                                                                                                                                                       |
|--------------------|---------|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| bk_scope_type      | string  | yes      | Resource scope type. Optional values: biz - Business，biz_set - Business Set                                                                                                                                                                                                                                                                                                                                       |
| bk_scope_id        | string  | yes      | Resource scope ID. Corresponds to bk_scope_type, which means business ID or business set ID                                                                                                                                                                                                                                                                                                                       |
| bk_biz_id          | long    | yes      | Deprecated. Business ID. This field has been deprecated and replaced by the field bk_scope_type+bk_scope_id                                                                                                                                                                                                                                                                                                       |
| script_version_id  | long    | no       | Script version ID. When script_version_id is not empty, the script version corresponding to script_version_id is used                                                                                                                                                                                                                                                                                             |
| script_id          | string  | no       | Script id. When script_id is passed in and script_version_id is empty, the online version of the script is used                                                                                                                                                                                                                                                                                                   |
| script_content     | string  | no       | Script content Base64. If script_version_id and script_id do not exist, script_content is used. Priority: script_version_id>script_id>script_content                                                                                                                                                                                                                                                              |
| task_name          | string  | no       | Custom job name, length cannot exceed 512 characters                                                                                                                                                                                                                                                                                                                                                              |
| script_param       | string  | no       | Script parameter Base64 encoding. Note: 1.If there are multiple parameters, such as 'param1 param2', it is necessary to perform base64 encoding on the entire 'param1 param2' instead of encoding each parameter separately and then concatenating them together. 2. The length before encoding non sensitive parameters cannot exceed 64K, and the length before encoding sensitive parameters cannot exceed 47K |
| timeout            | long    | no       | Script execution timeout in seconds. The default value is 7200, and the value range is [1,86400]                                                                                                                                                                                                                                                                                                                  |
| account_alias      | string  | no       | Execution account alias.  The account_id takes precedence when both account_alias and account_id exist.                                                                                                                                                                                                                                                                                                           |
| account_id         | long    | no       | Execution account ID. The account_id takes precedence when both account_alias and account_id exist.                                                                                                                                                                                                                                                                                                               |
| is_param_sensitive | int     | no       | Sensitive parameters will be hidden on the execution details page, 0: No (default), 1: Yes                                                                                                                                                                                                                                                                                                                        |
| script_language    | int     | no       | Scripting languages: 1 - shell, 2 - bat, 3 - Perl, 4 - Python, 5 - PowerShell. Script_language needs to be specified when you pass in a custom script using script_content                                                                                                                                                                                                                                        |
| target_server      | object  | no       | Target server, see server definition                                                                                                                                                                                                                                                                                                                                                                              |
| callback_url       | string  | no       | Callback URL, when the task execution is completed, the JOB will call this URL to inform the task execution result. Callback protocol refer to the callback_protocol component documentation                                                                                                                                                                                                                      |
| rolling_config     | object  | no       | Rolling config，see rolling_config definition                                                                                                                                                                                                                                                                                                                                                                      |
| start_task         | boolean | no       | Whether to start the task, default true. If it is false, you can start a task through the operating job instance interface                                                                                                                                                                                                                                                                                        |
| host_password_list | array   | no       | Windows Host Password，see host_password_list definition. This field does not need to be filled in by default, It uses the corresponding password for the specified account configured in the job platform by default, It only needs to be filled in if the host account has the same password differently.                                                                                                        |

{% include '_generic_server.md.j2' %}

{% include '_generic_rolling_config.md.j2' %}

{% include '_generic_host_password_list.md.j2' %}

### Example of request

- POST

```json
{
    "bk_scope_type": "biz",
    "bk_scope_id": "1",
    "script_version_id": 1,
    "script_content": "ZWNobyAkMQ==",
    "script_param": "aGVsbG8=",
    "timeout": 1000,
    "account_id": 1000,
    "is_param_sensitive": 0,
    "script_language": 1,
    "target_server": {
        "dynamic_group_list": [
            {
                "id": "blo8gojho0skft7pr5q0"
            }
        ],
        "host_id_list": [
            101,
            102
        ],
        "topo_node_list": [
            {
                "id": 1000,
                "node_type": "module"
            }
        ]
    }
}
```

### Example of responses

```json
{
    "result": true,
    "code": 0,
    "data": {
        "job_instance_name": "API Quick execution script1521100521303",
        "job_instance_id": 10000,
        "step_instance_id": 10001
    },
    "job_request_id": "xxx"
}
```

### Response Description

{% include '_generic_response.md.j2' %}

##### data

{% include '_generic_response_job_instance.md.j2' %}

